﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200022D RID: 557
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueEnterNextLayerScRsp : IMessage<ChessRogueEnterNextLayerScRsp>, IMessage, IEquatable<ChessRogueEnterNextLayerScRsp>, IDeepCloneable<ChessRogueEnterNextLayerScRsp>, IBufferMessage
	{
		// Token: 0x17000746 RID: 1862
		// (get) Token: 0x060018EA RID: 6378 RVA: 0x00047041 File Offset: 0x00045241
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueEnterNextLayerScRsp> Parser
		{
			get
			{
				return ChessRogueEnterNextLayerScRsp._parser;
			}
		}

		// Token: 0x17000747 RID: 1863
		// (get) Token: 0x060018EB RID: 6379 RVA: 0x00047048 File Offset: 0x00045248
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueEnterNextLayerScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000748 RID: 1864
		// (get) Token: 0x060018EC RID: 6380 RVA: 0x0004705A File Offset: 0x0004525A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueEnterNextLayerScRsp.Descriptor;
			}
		}

		// Token: 0x060018ED RID: 6381 RVA: 0x00047061 File Offset: 0x00045261
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterNextLayerScRsp()
		{
		}

		// Token: 0x060018EE RID: 6382 RVA: 0x0004706C File Offset: 0x0004526C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterNextLayerScRsp(ChessRogueEnterNextLayerScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueGameInfo_ = ((other.rogueGameInfo_ != null) ? other.rogueGameInfo_.Clone() : null);
			this.boardEventInfo_ = ((other.boardEventInfo_ != null) ? other.boardEventInfo_.Clone() : null);
			this.stageInfo_ = ((other.stageInfo_ != null) ? other.stageInfo_.Clone() : null);
			this.rogueCurrentInfo_ = ((other.rogueCurrentInfo_ != null) ? other.rogueCurrentInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060018EF RID: 6383 RVA: 0x0004710C File Offset: 0x0004530C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterNextLayerScRsp Clone()
		{
			return new ChessRogueEnterNextLayerScRsp(this);
		}

		// Token: 0x17000749 RID: 1865
		// (get) Token: 0x060018F0 RID: 6384 RVA: 0x00047114 File Offset: 0x00045314
		// (set) Token: 0x060018F1 RID: 6385 RVA: 0x0004711C File Offset: 0x0004531C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700074A RID: 1866
		// (get) Token: 0x060018F2 RID: 6386 RVA: 0x00047125 File Offset: 0x00045325
		// (set) Token: 0x060018F3 RID: 6387 RVA: 0x0004712D File Offset: 0x0004532D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGameInfo RogueGameInfo
		{
			get
			{
				return this.rogueGameInfo_;
			}
			set
			{
				this.rogueGameInfo_ = value;
			}
		}

		// Token: 0x1700074B RID: 1867
		// (get) Token: 0x060018F4 RID: 6388 RVA: 0x00047136 File Offset: 0x00045336
		// (set) Token: 0x060018F5 RID: 6389 RVA: 0x0004713E File Offset: 0x0004533E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLayerInitialEventInfo BoardEventInfo
		{
			get
			{
				return this.boardEventInfo_;
			}
			set
			{
				this.boardEventInfo_ = value;
			}
		}

		// Token: 0x1700074C RID: 1868
		// (get) Token: 0x060018F6 RID: 6390 RVA: 0x00047147 File Offset: 0x00045347
		// (set) Token: 0x060018F7 RID: 6391 RVA: 0x0004714F File Offset: 0x0004534F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueInfo StageInfo
		{
			get
			{
				return this.stageInfo_;
			}
			set
			{
				this.stageInfo_ = value;
			}
		}

		// Token: 0x1700074D RID: 1869
		// (get) Token: 0x060018F8 RID: 6392 RVA: 0x00047158 File Offset: 0x00045358
		// (set) Token: 0x060018F9 RID: 6393 RVA: 0x00047160 File Offset: 0x00045360
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCurrentInfo RogueCurrentInfo
		{
			get
			{
				return this.rogueCurrentInfo_;
			}
			set
			{
				this.rogueCurrentInfo_ = value;
			}
		}

		// Token: 0x060018FA RID: 6394 RVA: 0x00047169 File Offset: 0x00045369
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueEnterNextLayerScRsp);
		}

		// Token: 0x060018FB RID: 6395 RVA: 0x00047178 File Offset: 0x00045378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueEnterNextLayerScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueGameInfo, other.RogueGameInfo) && object.Equals(this.BoardEventInfo, other.BoardEventInfo) && object.Equals(this.StageInfo, other.StageInfo) && object.Equals(this.RogueCurrentInfo, other.RogueCurrentInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060018FC RID: 6396 RVA: 0x00047208 File Offset: 0x00045408
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueGameInfo_ != null)
			{
				num ^= this.RogueGameInfo.GetHashCode();
			}
			if (this.boardEventInfo_ != null)
			{
				num ^= this.BoardEventInfo.GetHashCode();
			}
			if (this.stageInfo_ != null)
			{
				num ^= this.StageInfo.GetHashCode();
			}
			if (this.rogueCurrentInfo_ != null)
			{
				num ^= this.RogueCurrentInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060018FD RID: 6397 RVA: 0x0004729F File Offset: 0x0004549F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060018FE RID: 6398 RVA: 0x000472A7 File Offset: 0x000454A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060018FF RID: 6399 RVA: 0x000472B0 File Offset: 0x000454B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.boardEventInfo_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.BoardEventInfo);
			}
			if (this.stageInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.StageInfo);
			}
			if (this.rogueCurrentInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.RogueCurrentInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueGameInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.RogueGameInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001900 RID: 6400 RVA: 0x00047360 File Offset: 0x00045560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueGameInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueGameInfo);
			}
			if (this.boardEventInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BoardEventInfo);
			}
			if (this.stageInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StageInfo);
			}
			if (this.rogueCurrentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueCurrentInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001901 RID: 6401 RVA: 0x00047400 File Offset: 0x00045600
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueEnterNextLayerScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueGameInfo_ != null)
			{
				if (this.rogueGameInfo_ == null)
				{
					this.RogueGameInfo = new ChessRogueGameInfo();
				}
				this.RogueGameInfo.MergeFrom(other.RogueGameInfo);
			}
			if (other.boardEventInfo_ != null)
			{
				if (this.boardEventInfo_ == null)
				{
					this.BoardEventInfo = new ChessRogueLayerInitialEventInfo();
				}
				this.BoardEventInfo.MergeFrom(other.BoardEventInfo);
			}
			if (other.stageInfo_ != null)
			{
				if (this.stageInfo_ == null)
				{
					this.StageInfo = new ChessRogueInfo();
				}
				this.StageInfo.MergeFrom(other.StageInfo);
			}
			if (other.rogueCurrentInfo_ != null)
			{
				if (this.rogueCurrentInfo_ == null)
				{
					this.RogueCurrentInfo = new ChessRogueCurrentInfo();
				}
				this.RogueCurrentInfo.MergeFrom(other.RogueCurrentInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001902 RID: 6402 RVA: 0x000474EC File Offset: 0x000456EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001903 RID: 6403 RVA: 0x000474F8 File Offset: 0x000456F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 26U)
					{
						if (this.boardEventInfo_ == null)
						{
							this.BoardEventInfo = new ChessRogueLayerInitialEventInfo();
						}
						input.ReadMessage(this.BoardEventInfo);
						continue;
					}
					if (num == 50U)
					{
						if (this.stageInfo_ == null)
						{
							this.StageInfo = new ChessRogueInfo();
						}
						input.ReadMessage(this.StageInfo);
						continue;
					}
				}
				else
				{
					if (num == 98U)
					{
						if (this.rogueCurrentInfo_ == null)
						{
							this.RogueCurrentInfo = new ChessRogueCurrentInfo();
						}
						input.ReadMessage(this.RogueCurrentInfo);
						continue;
					}
					if (num == 104U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 122U)
					{
						if (this.rogueGameInfo_ == null)
						{
							this.RogueGameInfo = new ChessRogueGameInfo();
						}
						input.ReadMessage(this.RogueGameInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000A5E RID: 2654
		private static readonly MessageParser<ChessRogueEnterNextLayerScRsp> _parser = new MessageParser<ChessRogueEnterNextLayerScRsp>(() => new ChessRogueEnterNextLayerScRsp());

		// Token: 0x04000A5F RID: 2655
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000A60 RID: 2656
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04000A61 RID: 2657
		private uint retcode_;

		// Token: 0x04000A62 RID: 2658
		public const int RogueGameInfoFieldNumber = 15;

		// Token: 0x04000A63 RID: 2659
		private ChessRogueGameInfo rogueGameInfo_;

		// Token: 0x04000A64 RID: 2660
		public const int BoardEventInfoFieldNumber = 3;

		// Token: 0x04000A65 RID: 2661
		private ChessRogueLayerInitialEventInfo boardEventInfo_;

		// Token: 0x04000A66 RID: 2662
		public const int StageInfoFieldNumber = 6;

		// Token: 0x04000A67 RID: 2663
		private ChessRogueInfo stageInfo_;

		// Token: 0x04000A68 RID: 2664
		public const int RogueCurrentInfoFieldNumber = 12;

		// Token: 0x04000A69 RID: 2665
		private ChessRogueCurrentInfo rogueCurrentInfo_;
	}
}
